#pragma once

#include <winioctl.h>

#define MSGNAME_OF_USB_NOTIFY		(_T("UsbNotifyMsgName"))
#define USB_MASSSTORAGE_ATTACH		0
#define USB_ACTIVESYNC_ATTACH		1
#define USB_FUNCTION_DETACH			2
#define USB_FUNCTION_ERROR			(-1)

#define IOCTL_UFN_GET_CONNECT_TYPE	CTL_CODE(FILE_DEVICE_UNKNOWN, 102, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_UFN_REGISTER_NOTIFY	CTL_CODE(FILE_DEVICE_UNKNOWN, 103, METHOD_BUFFERED, FILE_ANY_ACCESS)



INT RegisterUsbNotifyMsg(void);
INT GetUsbConnectType(void);
